﻿using System;
using System.Linq;
using System.Text;
using SIE.SCADA.SqlSugar;

namespace Models
{
    ///<summary>
    ///产品对应的工艺流程及工序工步表
    ///</summary>
    [SugarTable("scada_process")]
    public partial class scada_process
    {
           public scada_process(){


           }
           /// <summary>
           /// Desc:产品编码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string matid {get;set;}

           /// <summary>
           /// Desc:产品描叙
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string matdesc {get;set;}

           /// <summary>
           /// Desc:Mbom版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string mbom {get;set;}

           /// <summary>
           /// Desc:工艺流程编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string techprocess {get;set;}

           /// <summary>
           /// Desc:工艺流程版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string small_version {get;set;}

           /// <summary>
           /// Desc:工序名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string disque_name {get;set;}

           /// <summary>
           /// Desc:工序编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string disque_code {get;set;}

           /// <summary>
           /// Desc:此工序是第几道序
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? disque_qty {get;set;}

           /// <summary>
           /// Desc:工艺流程总共多少工序
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? disque_sum {get;set;}

           /// <summary>
           /// Desc:工步名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep {get;set;}

           /// <summary>
           /// Desc:工步编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_code {get;set;}

           /// <summary>
           /// Desc:创建人
           /// Default:
           /// Nullable:True
           /// </summary>           
           //public string CreateUser_Str {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           //public DateTime? CreateTime_Dt {get;set;}

           /// <summary>
           /// Desc:工序的第几工步
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? jobstep_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public int id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? createtime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string createuser_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           //public DateTime? ModifyTime_Dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string remark_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? isenable_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? isactive_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? issync_bit {get;set;}

           /// <summary>
           /// Desc:状态
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int state_Int {get;set;}

           /// <summary>
           /// Desc:控制模式
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public int? control_mode {get;set;}

           /// <summary>
           /// Desc:工时
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal workhour_num {get;set;}
        
        /// <summary>
        /// 使用次数
        /// </summary>
        public int torquetimes { get; set; }
        /// <summary>
        /// 派工单工序编码
        /// </summary>
        public string op_group { get; set; }

        /// <summary>
        /// 工位编码
        /// </summary>
        public string workbin { get; set; }

        /// <summary>
        /// 工位名称
        /// </summary>
        public string workbinname { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string equipmentCode { get; set; }


        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipmentDesc { get; set; }

    }
}
